<?php 
# Inclusion des  classes de gestion
require('../../../conf/database.conf.php');
require('../../../class/sys/database.class.php');
include_once "../../../class/app/personList.class.php";




/* ========= Personnes ========= */
$term = trim(strip_tags($_GET['term']));

$personneList = new PersonList();
$result = $personneList->getPersonnesSidebar($term);
foreach($result as $personne){
	$row["label"] = $personne['prenomPerson'].' '.$personne['nomPerson'];
	$row["id"] = $personne['idPerson'];
	$row_set[] = $row;
}


echo json_encode($row_set);// retourne l'array au format JSON


?>